package cn.oscar.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import commonUtils.dto.AdminDTO;
import commonUtils.entities.Administrator;
import commonUtils.entities.Restful;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

public interface AdminService extends IService<Administrator>  {

    List<Administrator> selectAdminList();


    Restful<Administrator> login(HttpServletRequest request, Administrator administrator);

    Restful<String> logout(HttpServletRequest request);

    Restful<String> addAdmin(Administrator administrator);

    Restful<Page<AdminDTO>> selectByPage(int page, int pageSize, String name);

    Restful<String> updateAdmin(Administrator administrator);

    Restful<Administrator> selectById(int id);
}
